#ifndef __THREADQUEUE__
#define __THREADQUEUE__
#include<func.h>

//定义一个队列结点
typedef struct node_s{
    int net_fd;
    struct node_s *next;
}node_t;

//定义队列
typedef struct queue_s{
    node_t* head;
    node_t* rear;
    int size;
}queue_t;

int enQueue(queue_t* q,int net_fd);

int deQueue(queue_t* q);
#endif
